#include "Skill.h"
#include "hero.h"
#include "SkillPool.h"

Skill::Skill(const string& name, int type, int target, int val, int duration, int step, const string& desc)
	: m_name(name)
	, m_type(type)
	, m_target(target)	
	, m_value(val)
	, m_duration(duration)
	, m_step(step)
	, m_desc(desc)
{

}

SkillData Skill::GetCopy()
{
	return SkillData(m_value, m_duration, m_step);
}

Skill* Hero::GetSkill()
{
	return SkillPool::instance()->GetSkill(m_skill);
}